/*    */ package com.amarsoft.task;
/*    */ 
/*    */ public class Route
/*    */ {
/*    */   private ExecuteUnit nextUnit;
/* 17 */   private int executeStatus = -1;
/*    */ 
/*    */   public Route(int executeStatus, ExecuteUnit nextUnit)
/*    */   {
/* 25 */     this.nextUnit = nextUnit;
/* 26 */     this.executeStatus = executeStatus;
/*    */   }
/*    */ 
/*    */   public Route(String executeStatus, ExecuteUnit nextUnit)
/*    */   {
/* 36 */     if (executeStatus.matches("[0-9]*"))
/* 37 */       this.executeStatus = Integer.parseInt(executeStatus);
/* 38 */     else if (executeStatus.equalsIgnoreCase("UNEXECUTE"))
/* 39 */       this.executeStatus = 0;
/* 40 */     else if (executeStatus.equalsIgnoreCase("SUCCESSFUL"))
/* 41 */       this.executeStatus = 1;
/* 42 */     else if (executeStatus.equalsIgnoreCase("FAILED"))
/* 43 */       this.executeStatus = 2;
/* 44 */     else if (executeStatus.equalsIgnoreCase("WARNING")) {
/* 45 */       this.executeStatus = 3;
/*    */     }
/* 47 */     this.nextUnit = nextUnit;
/*    */   }
/*    */ 
/*    */   public final int executeStatus()
/*    */   {
/* 56 */     return this.executeStatus;
/*    */   }
/*    */ 
/*    */   public final ExecuteUnit nextUnit()
/*    */   {
/* 65 */     return this.nextUnit;
/*    */   }
/*    */ }

/* Location:           D:\办公软件\反编译工具\jar\task-1.5beata_g.jar
 * Qualified Name:     com.amarsoft.task.Route
 * JD-Core Version:    0.5.3
 */